home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-07-15 | 7.1 KB | 325 lines | [TEXT/MPS ] |
- #define SystemSevenOrLater 1
- #include "Types.r"
- resource 'MENU' (131) {
- 131,
- textMenuProc,
- 0x7FFFFFD7,
- enabled,
- "Test Stuff",
- { /* array: 1 elements */
- /* [1] */
- "Open a Moveable Modeless Dialog", noIcon, noKey, noMark, plain
- }
- };
-
- resource 'MENU' (128, preload) {
- 128,
- textMenuProc,
- 0x7FFFFFFD,
- enabled,
- apple,
- { /* array: 2 elements */
- /* [1] */
- "About", noIcon, noKey, noMark, plain,
- /* [2] */
- "-", noIcon, noKey, noMark, plain
- }
- };
-
- resource 'MENU' (129, preload) {
- 129,
- textMenuProc,
- 0xE00,
- enabled,
- "File",
- { /* array: 10 elements */
- /* [1] */
- "New", noIcon, "N", noMark, plain,
- /* [2] */
- "Open", noIcon, "O", noMark, plain,
- /* [3] */
- "Close", noIcon, "W", noMark, plain,
- /* [4] */
- "Save", noIcon, "S", noMark, plain,
- /* [5] */
- "Save As...", noIcon, noKey, noMark, plain,
- /* [6] */
- "-", noIcon, noKey, noMark, plain,
- /* [7] */
- "Page Setup...", noIcon, noKey, noMark, plain,
- /* [8] */
- "Print...", noIcon, "P", noMark, plain,
- /* [9] */
- "-", noIcon, noKey, noMark, plain,
- /* [10] */
- "Quit", noIcon, "Q", noMark, plain
- }
- };
-
- resource 'MENU' (130, preload) {
- 130,
- textMenuProc,
- 0x3400,
- enabled,
- "Edit",
- { /* array: 6 elements */
- /* [1] */
- "Undo", noIcon, "Z", noMark, plain,
- /* [2] */
- "-", noIcon, noKey, noMark, plain,
- /* [3] */
- "Cut", noIcon, "X", noMark, plain,
- /* [4] */
- "Copy", noIcon, "C", noMark, plain,
- /* [5] */
- "Paste", noIcon, "V", noMark, plain,
- /* [6] */
- "Clear", noIcon, noKey, noMark, plain
- }
- };
-
- resource 'DITL' (128, purgeable) {
- { /* array DITLarray: 4 elements */
- /* [1] */
- {164, 115, 184, 185},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {5, 10, 43, 290},
- StaticText {
- disabled,
- "The Simplest Shell"
- },
- /* [3] */
- {76, 3, 154, 301},
- StaticText {
- disabled,
- "FredWare from Apple Developer Technical "
- "Support, ADS group.\nCopyright © 1991 Ap"
- "ple Computer Inc.\nWritten by C.K. Haun ("
- "<TR>)."
- },
- /* [4] */
- {53, 82, 71, 227},
- StaticText {
- disabled,
- "version 1.0d1"
- }
- }
- };
-
- resource 'DITL' (129, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {170, 90, 190, 148},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {10, 40, 62, 204},
- StaticText {
- disabled,
- "Help information should go here"
- }
- }
- };
-
- resource 'DITL' (130, purgeable) {
- { /* array DITLarray: 3 elements */
- /* [1] */
- {80, 100, 100, 158},
- Button {
- enabled,
- "Exit"
- },
- /* [2] */
- {10, 80, 27, 237},
- StaticText {
- disabled,
- "Bad System Version!"
- },
- /* [3] */
- {50, 25, 66, 232},
- StaticText {
- disabled,
- "Requires System 7 or greater."
- }
- }
- };
-
- resource 'ALRT' (128, purgeable) {
- {40, 40, 229, 363},
- 128,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- },
- alertPositionMainScreen
- };
-
- resource 'ALRT' (130, purgeable) {
- {40, 40, 149, 296},
- 130,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- },
- alertPositionMainScreen
- };
-
- resource 'WIND' (128, purgeable) {
- {44, 4, 242, 498},
- documentProc,
- visible,
- noGoAway,
- 0x0,
- "Simple",
- staggerParentWindow
- };
-
- resource 'WIND' (129) {
- {40, 40, 170, 286},
- movableDBoxProc,
- invisible,
- noGoAway,
- 0x0,
- "Sample Moveable Modal",
- alertPositionMainScreen
- };
-
- data 'TEXT' (128) {
- $"5468 6973 2073 616D 706C 6520 7368 6F77" /* This sample show */
- $"2061 2076 6572 7920 7369 6D70 6C65 2069" /* a very simple i */
- $"6D70 6C65 6D65 6E74 6174 696F 6E20 6F66" /* mplementation of */
- $"2074 6865 2037 2E30 204D 6F76 6561 626C" /* the 7.0 Moveabl */
- $"6520 4D6F 6461 6C20 4469 616C 6F67 2E0D" /* e Modal Dialog.¬ */
- $"5369 6E63 6520 796F 7520 6361 6E27 7420" /* Since you can't */
- $"6361 6C6C 204D 6F64 616C 4469 616C 6F67" /* call ModalDialog */
- $"206F 6E20 6120 4D4D 6F64 616C 2C20 796F" /* on a MModal, yo */
- $"7520 6861 7665 2074 6F20 646F 2074 6865" /* u have to do the */
- $"2061 6374 7561 6C20 6869 7420 7265 7374" /* actual hit rest */
- $"7269 6374 696E 6720 616E 6420 6D65 6E75" /* ricting and menu */
- $"2064 696D 6D69 6E67 2079 6F75 7273 656C" /* dimming yoursel */
- $"662C 2062 7574 2069 7427 7320 6E6F 7420" /* f, but it's not */
- $"7265 616C 6C79 206D 7563 6820 6D6F 7265" /* really much more */
- $"206F 6620 6120 6368 6F72 652E 2020 416C" /* of a chore. Al */
- $"6C20 796F 7520 6E65 6564 2074 6F20 6164" /* l you need to ad */
- $"6420 6973 206F 6E65 206C 696C 2720 676C" /* d is one lil' gl */
- $"6F62 616C 2074 6861 7420 7465 6C6C 7320" /* obal that tells */
- $"796F 7520 7768 656E 2079 6F75 2776 6520" /* you when you've */
- $"676F 7420 6120 4D4D 6F64 616C 2075 702C" /* got a MModal up, */
- $"2061 6E64 2074 6869 6E67 7320 7769 6C6C" /* and things will */
- $"2062 6520 776F 6E64 6572 6675 6C2E 0D0D" /* be wonderful.¬¬ */
- $"5365 6C65 6374 2027 4F70 656E 204D 6F76" /* Select 'Open Mov */
- $"6561 626C 6520 4D6F 6461 6C27 2066 726F" /* eable Modal' fro */
- $"6D20 7468 6520 5465 7374 2053 7475 6666" /* m the Test Stuff */
- $"206D 656E 7520 746F 2077 6174 6368 2069" /* menu to watch i */
- $"7420 776F 726B 2E" /* t work. */
- };
-
- data 'TEXT' (129) {
- $"5468 6973 2069 7320 6120 6D6F 7665 6162" /* This is a moveab */
- $"6C65 206D 6F64 616C 2064 6961 6C6F 672E" /* le modal dialog. */
- $"2020 436C 6963 6B20 696E 2074 6861 7420" /* Click in that */
- $"6275 7474 6F6E 2074 6865 7265 2074 6F20" /* button there to */
- $"6D61 6B65 2069 7420 676F 2061 7761 792E" /* make it go away. */
- };
-
- data 'TEXT' (130) {
- $"4772 6174 7569 746F 7573 2053 6563 6F6E" /* Gratuitous Secon */
- $"6420 5769 6E64 6F77 2E20 2049 676E 6F72" /* d Window. Ignor */
- $"6520 6D65 2C20 706C 6561 7365 2E" /* e me, please. */
- };
-
- resource 'STR#' (128) {
- { /* array StringArray: 1 elements */
- /* [1] */
- "Another Window Fer Fun"
- }
- };
-
- resource 'STR#' (129) {
- { /* array StringArray: 2 elements */
- /* [1] */
- "Close Moveable Modal Dialog",
- /* [2] */
- "Open Moveable Modal Dialog"
- }
- };
-
- resource 'MBAR' (128) {
- { /* array MenuArray: 4 elements */
- /* [1] */
- 128,
- /* [2] */
- 129,
- /* [3] */
- 130,
- /* [4] */
- 131
- }
- };
-
- resource 'SIZE' (-1) {
- reserved,
- acceptSuspendResumeEvents,
- reserved,
- canBackground,
- multiFinderAware,
- backgroundAndForeground,
- dontGetFrontClicks,
- ignoreChildDiedEvents,
- is32BitCompatible,
- isHighLevelEventAware,
- localAndRemoteHLEvents,
- notStationeryAware,
- dontUseTextEditServices,
- reserved,
- reserved,
- reserved,
- 50000,
- 50000
- };
-
- resource 'STR ' (128) {
- "Simple Help..."
- };
-
- resource 'DLOG' (129, "Sample Help Dialog", purgeable) {
- {34, 40, 234, 280},
- dBoxProc,
- visible,
- goAway,
- 0x0,
- 129,
- "",
- alertPositionMainScreen
- };
-
- resource 'CNTL' (128) {
- {99, 55, 128, 185},
- 0,
- visible,
- 0,
- 0,
- pushButProc,
- 0,
- "Close Me"
- };
-
-